cppcheck: Option --std=posix is deprecated and will be removed in 2.05.
spqi/bsdpqi_sca_report_B1032.txt:1:71: error: syntax error [syntaxError]
cppcheck: Option --std=posix is deprecated and will be removed in 2.05.
                                                                      ^
spqi/pqilib/src/pqi_discovery.c:1175:11: style: Condition 'retry<=0' is always false [knownConditionTrueFalse]
 if(retry <= 0)
          ^
spqi/pqilib/src/pqi_discovery.c:1159:14: note: Assignment 'retry=3', assigned value is 3
 int retry = 3;
             ^
spqi/pqilib/src/pqi_discovery.c:1164:6: note: Assuming condition is false
 if (!inq_buff)
     ^
spqi/pqilib/src/pqi_discovery.c:1167:8: note: retry is decremented', new value is 2
 while(retry--) {
       ^
spqi/pqilib/src/pqi_discovery.c:1175:11: note: Condition 'retry<=0' is always false
 if(retry <= 0)
          ^
spqi/pqilib/src/pqi_discovery.c:2026:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_DISC("physical_cnt %d logical_cnt %d queue_cnt %d\n", physical_cnt, logical_cnt, logical_queue_cnt);
 ^
spqi/pqilib/src/pqi_discovery.c:2026:2: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_DISC("physical_cnt %d logical_cnt %d queue_cnt %d\n", physical_cnt, logical_cnt, logical_queue_cnt);
 ^
spqi/pqilib/src/pqi_discovery.c:2026:2: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_DISC("physical_cnt %d logical_cnt %d queue_cnt %d\n", physical_cnt, logical_cnt, logical_queue_cnt);
 ^
spqi/pqilib/src/pqi_discovery.c:1566:10: warning: Variable 'status' is reassigned a value before the old one has been used. 'break;' missing? [redundantAssignInSwitch]
  status = "Volume ejected";
         ^
spqi/pqilib/src/pqi_discovery.c:1564:10: note: $symbol is assigned
  status = "Volume queued for expansion";
         ^
spqi/pqilib/src/pqi_discovery.c:1566:10: note: $symbol is overwritten
  status = "Volume ejected";
         ^
spqi/pqilib/src/pqi_discovery.c:820:11: style: The scope of the variable 'bus' can be reduced. [variableScope]
 uint32_t bus;
          ^
spqi/pqilib/src/pqi_discovery.c:821:11: style: The scope of the variable 'target' can be reduced. [variableScope]
 uint32_t target;
          ^
spqi/pqilib/src/pqi_discovery.c:822:11: style: The scope of the variable 'lun' can be reduced. [variableScope]
 uint32_t lun;
          ^
spqi/pqilib/src/pqi_discovery.c:1499:11: style: The scope of the variable 'scsi3addr' can be reduced. [variableScope]
 uint8_t *scsi3addr;
          ^
spqi/pqilib/src/pqi_discovery.c:1609:9: style: The scope of the variable 'rcb' can be reduced. [variableScope]
 rcb_t *rcb;
        ^
spqi/pqilib/src/pqi_discovery.c:67:0: information: Skipping configuration 'ASSERT=1;offsetofend' since the value of 'offsetofend' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. [ConfigurationNotChecked]
  MINIMUM_AIO_SUBPAGE_LENGTH) {
^
spqi/pqilib/src/pqi_event.c:162:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_INFO("Initial Event_q ci : %d Event_q pi : %d\n", obq_ci, obq_pi);
 ^
spqi/pqilib/src/pqi_event.c:162:2: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_INFO("Initial Event_q ci : %d Event_q pi : %d\n", obq_ci, obq_pi);
 ^
spqi/pqilib/src/pqi_event.c:166:3: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
  DBG_INFO("queue_id : %d ci : %d pi : %d\n",obq_id, obq_ci, obq_pi);
  ^
spqi/pqilib/src/pqi_event.c:166:3: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
  DBG_INFO("queue_id : %d ci : %d pi : %d\n",obq_id, obq_ci, obq_pi);
  ^
spqi/pqilib/src/pqi_features.c:18:3: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
  DBG_ERR_NO_SOFTS("Invalid byte index for bit position %d\n",
  ^
spqi/pqilib/src/pqi_features.c:338:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_INFO("Num joint features supported : %d \n", num_features_supported);
 ^
spqi/pqilib/src/pqi_features.c:107:12: style: The scope of the variable 'host_max_known_feature_iomem_addr' can be reduced. [variableScope]
 uint16_t *host_max_known_feature_iomem_addr;
           ^
spqi/pqilib/src/pqi_features.c:108:11: style: The scope of the variable 'pqi_max_feature' can be reduced. [variableScope]
 uint16_t pqi_max_feature = PQI_FIRMWARE_FEATURE_MAXIMUM;
          ^
spqi/pqilib/src/pqi_features.c:24:41: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation]
  (1 << (bit_position % BITS_PER_BYTE)) ? true : false;
                                        ^
spqi/pqilib/src/pqi_features.c:48:41: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation]
  (1 << (bit_position % BITS_PER_BYTE)) ? true : false;
                                        ^
spqi/pqilib/src/pqi_helper.c:446:2: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
 DBG_WARN_BTL(device,"Device Outstanding IO count = %ld\n", pqisrc_read_device_active_io(softs, device));
 ^
spqi/pqilib/src/pqi_helper.c:446:2: warning: %u in format string (no. 5) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
 DBG_WARN_BTL(device,"Device Outstanding IO count = %ld\n", pqisrc_read_device_active_io(softs, device));
 ^
spqi/pqilib/src/pqi_helper.c:446:2: warning: %u in format string (no. 6) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
 DBG_WARN_BTL(device,"Device Outstanding IO count = %ld\n", pqisrc_read_device_active_io(softs, device));
 ^
spqi/pqilib/src/pqi_helper.c:446:2: warning: %ld in format string (no. 10) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint]
 DBG_WARN_BTL(device,"Device Outstanding IO count = %ld\n", pqisrc_read_device_active_io(softs, device));
 ^
spqi/pqilib/src/pqi_helper.c:455:4: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
   DBG_WARN_BTL(device,"timed out waiting for pending IO. DeviceOutStandingIo's=%ld\n",
   ^
spqi/pqilib/src/pqi_helper.c:455:4: warning: %u in format string (no. 5) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
   DBG_WARN_BTL(device,"timed out waiting for pending IO. DeviceOutStandingIo's=%ld\n",
   ^
spqi/pqilib/src/pqi_helper.c:455:4: warning: %u in format string (no. 6) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
   DBG_WARN_BTL(device,"timed out waiting for pending IO. DeviceOutStandingIo's=%ld\n",
   ^
spqi/pqilib/src/pqi_helper.c:455:4: warning: %ld in format string (no. 10) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint]
   DBG_WARN_BTL(device,"timed out waiting for pending IO. DeviceOutStandingIo's=%ld\n",
   ^
spqi/pqilib/src/pqi_helper.c:362:9: style: The scope of the variable 'rcb' can be reduced. [variableScope]
 rcb_t* rcb;
        ^
spqi/pqilib/src/pqi_helper.c:377:9: style: The scope of the variable 'rcb' can be reduced. [variableScope]
 rcb_t* rcb;
        ^
spqi/pqilib/src/pqi_helper.c:91:12: style: Variable 'reg_addr' is assigned a value that is never used. [unreadVariable]
  reg_addr = &softs->pqi_reg->legacy_intr_mask_clr;
           ^
spqi/pqilib/src/pqi_helper.c:93:12: style: Variable 'reg_addr' is assigned a value that is never used. [unreadVariable]
  reg_addr = &softs->pqi_reg->legacy_intr_mask_set;
           ^
spqi/pqilib/src/pqi_init.c:584:9: warning: Identical condition and return expression 'ret', return value is always 0 [identicalConditionAfterEarlyExit]
 return ret;
        ^
spqi/pqilib/src/pqi_init.c:578:6: note: If condition 'ret' is true, the function will return/exit
 if (ret) {
     ^
spqi/pqilib/src/pqi_init.c:584:9: note: Returning identical expression 'ret'
 return ret;
        ^
spqi/pqilib/src/pqi_init.c:340:10: style: Condition 'tmo<=0' is always false [knownConditionTrueFalse]
 if (tmo <= 0) {
         ^
spqi/pqilib/src/pqi_init.c:326:8: note: Assignment 'tmo=30*1000', assigned value is 30000
 tmo = PQISRC_PQIMODE_READY_TIMEOUT;
       ^
spqi/pqilib/src/pqi_init.c:336:11: note: tmo is decremented', new value is 29999
 } while (tmo--);
          ^
spqi/pqilib/src/pqi_init.c:340:10: note: Condition 'tmo<=0' is always false
 if (tmo <= 0) {
         ^
spqi/pqilib/src/pqi_init.c:904:6: style: Condition 'flush_buff' is always true [knownConditionTrueFalse]
 if (flush_buff)
     ^
spqi/pqilib/src/pqi_init.c:883:6: note: Assuming that condition '!flush_buff' is not redundant
 if (!flush_buff) {
     ^
spqi/pqilib/src/pqi_init.c:900:6: note: Assuming condition is false
 if (rval) {
     ^
spqi/pqilib/src/pqi_init.c:904:6: note: Condition 'flush_buff' is always true
 if (flush_buff)
     ^
spqi/pqilib/src/pqi_init.c:153:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_INIT("Max Outstanding IO reset to %d\n", num_req);
 ^
spqi/pqilib/src/pqi_init.c:231:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_INIT("softs->num_op_obq : %d\n",softs->num_op_obq);
 ^
spqi/pqilib/src/pqi_init.c:276:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_INIT("softs->num_elem_per_op_ibq: %d\n", softs->num_elem_per_op_ibq); // 32 for xcal
 ^
spqi/pqilib/src/pqi_init.c:277:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_INIT("softs->num_elem_per_op_obq: %d\n", softs->num_elem_per_op_obq); // 256 for xcal
 ^
spqi/pqilib/src/pqi_init.c:279:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_INIT("softs->max_sg_per_spanning_cmd: %d\n", softs->max_sg_per_spanning_cmd); // 68 until we add AIO writes
 ^
spqi/pqilib/src/pqi_init.c:595:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_NOTE("softs->taglist.num_elem : %d",softs->taglist.num_elem);
 ^
spqi/pqilib/src/pqi_init.c:600:3: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
  DBG_WARN("%d commands pending\n",
  ^
spqi/pqilib/src/pqi_init.c:409:11: style: The scope of the variable 'val' can be reduced. [variableScope]
 uint32_t val = 0;
          ^
spqi/pqilib/src/pqi_init.c:592:6: style: The scope of the variable 'count' can be reduced. [variableScope]
 int count = 0;
     ^
spqi/pqilib/src/pqi_init.c:632:9: style: The scope of the variable 'rcb' can be reduced. [variableScope]
 rcb_t *rcb;
        ^
spqi/pqilib/src/pqi_init.c:409:15: style: Variable 'val' is assigned a value that is never used. [unreadVariable]
 uint32_t val = 0;
              ^
spqi/pqilib/src/pqi_init.c:430:33: style: Variable 'pqi_reset_reg.bits.reset_type' is assigned a value that is never used. [unreadVariable]
  pqi_reset_reg.bits.reset_type = PQI_RESET_TYPE_HARD_RESET;
                                ^
spqi/pqilib/src/pqi_init.c:431:35: style: Variable 'pqi_reset_reg.bits.reset_action' is assigned a value that is never used. [unreadVariable]
  pqi_reset_reg.bits.reset_action = PQI_RESET_ACTION_RESET;
                                  ^
spqi/pqilib/src/pqi_queue.c:326:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_INFO(" softs->admin_ib_queue.num_elem : %d\n",
 ^
spqi/pqilib/src/pqi_queue.c:328:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_INFO(" softs->admin_ib_queue.elem_size : %d\n",
 ^
spqi/pqilib/src/pqi_queue.c:334:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_INFO(" softs->admin_ob_queue.num_elem : %d\n",
 ^
spqi/pqilib/src/pqi_queue.c:336:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_INFO(" softs->admin_ob_queue.elem_size : %d\n",
 ^
spqi/pqilib/src/pqi_queue.c:488:4: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
   DBG_ERR("Failed to Delete Event Q %d\n", softs->event_q.q_id);
   ^
spqi/pqilib/src/pqi_queue.c:521:5: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
    DBG_ERR("Failed to Delete IB Q %d\n",
    ^
spqi/pqilib/src/pqi_queue.c:563:5: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
    DBG_ERR("Failed to Delete OB Q %d\n",op_ob_q->q_id);
    ^
spqi/pqilib/src/pqi_queue.c:790:3: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
  DBG_ERR("Failed to Create EventQ %d\n",event_q->q_id);
  ^
spqi/pqilib/src/pqi_queue.c:862:4: warning: %d in format string (no. 8) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
   DBG_ERR("Failed to Create OP IBQ type=%s id=%d\n",
   ^
spqi/pqilib/src/pqi_queue.c:901:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_INIT("softs->num_op_obq %d max_obq_elem_size=%d\n",softs->num_op_obq, softs->max_obq_elem_size);
 ^
spqi/pqilib/src/pqi_queue.c:901:2: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_INIT("softs->num_op_obq %d max_obq_elem_size=%d\n",softs->num_op_obq, softs->max_obq_elem_size);
 ^
spqi/pqilib/src/pqi_queue.c:923:4: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
   DBG_ERR("Failed to Create OP OBQ %d\n",op_ob_q->q_id);
   ^
spqi/pqilib/src/pqi_queue.c:551:10: style: Variable 'ret' is assigned a value that is never used. [unreadVariable]
 int ret = PQI_STATUS_SUCCESS;
         ^
spqi/pqilib/src/pqi_request.c:1863:7: style: Condition '!tmf_req.timeout_in_sec' is always false [knownConditionTrueFalse]
  if (!tmf_req.timeout_in_sec)
      ^
spqi/pqilib/src/pqi_request.c:1861:26: note: tmf_req.timeout_in_sec is assigned value 599
  tmf_req.timeout_in_sec = OS_TMF_TIMEOUT_SEC - 1;
                         ^
spqi/pqilib/src/pqi_request.c:1863:7: note: Condition '!tmf_req.timeout_in_sec' is always false
  if (!tmf_req.timeout_in_sec)
      ^
spqi/pqilib/src/pqi_request.c:73:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_IO("SGL_Count :%d\n",SG_Count);
 ^
spqi/pqilib/src/pqi_request.c:934:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_IO("num_elem_needed :%d",num_elem_needed);
 ^
spqi/pqilib/src/pqi_request.c:943:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
  DBG_IO("num_elem_avialable :%d\n",num_elem_available);
  ^
spqi/pqilib/src/pqi_request.c:960:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_IO("num_elem_alloted :%d",num_elem_alloted);
 ^
spqi/pqilib/src/pqi_request.c:1431:10: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
  DBG_AIO("AIO ineligible: size=%d, max=%d", size, dev_max);
         ^
spqi/pqilib/src/pqi_request.c:1431:10: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
  DBG_AIO("AIO ineligible: size=%d, max=%d", size, dev_max);
         ^
spqi/pqilib/src/pqi_request.c:1627:2: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_INFO("tag=0x%x dir=%d host_timeout=%ums\n", rcb->tag,
 ^
spqi/pqilib/src/pqi_request.c:1636:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
  DBG_INFO("row=%d blk/row=%d index=%d map_row=%d\n",
  ^
spqi/pqilib/src/pqi_request.c:1636:3: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
  DBG_INFO("row=%d blk/row=%d index=%d map_row=%d\n",
  ^
spqi/pqilib/src/pqi_request.c:1636:3: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
  DBG_INFO("row=%d blk/row=%d index=%d map_row=%d\n",
  ^
spqi/pqilib/src/pqi_request.c:1636:3: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
  DBG_INFO("row=%d blk/row=%d index=%d map_row=%d\n",
  ^
spqi/pqilib/src/pqi_request.c:1800:2: warning: %d in format string (no. 8) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_WARN("aio tmf: iu_type=0x%x req_id_to_manage=%d\n",
 ^
spqi/pqilib/src/pqi_request.c:1802:2: warning: %d in format string (no. 10) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_WARN("aio tmf: req_id=%d nexus=0x%x tmf=0x%x QID=%d\n",
 ^
spqi/pqilib/src/pqi_request.c:1822:3: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
  DBG_ERR_BTL(devp, "Task Management failed tmf_type:%d "
  ^
spqi/pqilib/src/pqi_request.c:1822:3: warning: %u in format string (no. 5) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
  DBG_ERR_BTL(devp, "Task Management failed tmf_type:%d "
  ^
spqi/pqilib/src/pqi_request.c:1822:3: warning: %u in format string (no. 6) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
  DBG_ERR_BTL(devp, "Task Management failed tmf_type:%d "
  ^
spqi/pqilib/src/pqi_request.c:1902:2: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_INFO("%s: pending=%d path=%d tag=0x%x=%d qid=%d timeout=%ums\n",
 ^
spqi/pqilib/src/pqi_request.c:1902:2: warning: %d in format string (no. 8) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_INFO("%s: pending=%d path=%d tag=0x%x=%d qid=%d timeout=%ums\n",
 ^
spqi/pqilib/src/pqi_request.c:1914:2: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_WARN("sending TMF. io outstanding=%d\n",
 ^
spqi/pqilib/src/pqi_request.c:872:6: style: The scope of the variable 'ret' can be reduced. [variableScope]
 int ret = PQI_STATUS_FAILURE;
     ^
spqi/pqilib/src/pqi_request.c:1252:11: style: The scope of the variable 'index' can be reduced. [variableScope]
 uint32_t index;
          ^
spqi/pqilib/src/pqi_request.c:2150:17: style: The scope of the variable 'pcounter' can be reduced. [variableScope]
 io_counters_t *pcounter;
                ^
spqi/pqilib/src/pqi_request.c:2151:8: style: The scope of the variable 'raid_type' can be reduced. [variableScope]
 char *raid_type;
       ^
spqi/pqilib/src/pqi_request.c:660:2: warning: %llx in format string (no. 4) requires 'unsigned long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_uint]
 DBG_INFO("%15s: 0x%llx\n", "row", aio_req->row);
 ^
spqi/pqilib/src/pqi_request.c:1483:2: warning: %llx in format string (no. 4) requires 'unsigned long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_uint]
 DBG_INFO("%-25s: 0x%llx\n", "block.first", l->block.first);
 ^
spqi/pqilib/src/pqi_request.c:1484:2: warning: %llx in format string (no. 4) requires 'unsigned long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_uint]
 DBG_INFO("%-25s: 0x%llx\n", "block.last", l->block.last);
 ^
spqi/pqilib/src/pqi_request.c:1486:2: warning: %llx in format string (no. 4) requires 'unsigned long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_uint]
 DBG_INFO("%-25s: 0x%llx\n", "block.disk_block", l->block.disk_block);
 ^
spqi/pqilib/src/pqi_request.c:1488:2: warning: %llx in format string (no. 4) requires 'unsigned long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_uint]
 DBG_INFO("%-25s: 0x%llx\n", "row.first", l->row.first);
 ^
spqi/pqilib/src/pqi_request.c:1489:2: warning: %llx in format string (no. 4) requires 'unsigned long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_uint]
 DBG_INFO("%-25s: 0x%llx\n", "row.last", l->row.last);
 ^
spqi/pqilib/src/pqi_request.c:1500:3: warning: %llx in format string (no. 4) requires 'unsigned long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_uint]
  DBG_INFO("%-25s: 0x%llx\n", "r5or6.row.first", l->r5or6.row.first);
  ^
spqi/pqilib/src/pqi_request.c:1501:3: warning: %llx in format string (no. 4) requires 'unsigned long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_uint]
  DBG_INFO("%-25s: 0x%llx\n", "r5or6.row.last", l->r5or6.row.last);
  ^
spqi/pqilib/src/pqi_request.c:1478:15: style: Variable 'cdb' is assigned a value that is never used. [unreadVariable]
 uint8_t *cdb = rcb->cdbp;
              ^
spqi/pqilib/src/pqi_request.c:1451:2: warning: %llx in format string (no. 4) requires 'unsigned long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_uint]
 DBG_INFO("%-25s: 0x%llx\n", "LogicalBlockCount", m->volume_blk_cnt);
 ^
spqi/pqilib/src/pqi_request.c:1456:2: warning: %llx in format string (no. 4) requires 'unsigned long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_uint]
 DBG_INFO("%-25s: 0x%llx\n", "DiskStartingBlock", m->disk_starting_blk);
 ^
spqi/pqilib/src/pqi_request.c:1457:2: warning: %llx in format string (no. 4) requires 'unsigned long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_uint]
 DBG_INFO("%-25s: 0x%llx\n", "DiskBlockCount", m->disk_blk_cnt);
 ^
spqi/pqilib/src/pqi_response.c:398:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_IO("ci : %d pi : %d qid : %d\n", oq_ci, oq_pi, ob_q->q_id);
 ^
spqi/pqilib/src/pqi_response.c:398:2: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_IO("ci : %d pi : %d qid : %d\n", oq_ci, oq_pi, ob_q->q_id);
 ^
spqi/pqilib/src/pqi_response.c:398:2: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_IO("ci : %d pi : %d qid : %d\n", oq_ci, oq_pi, ob_q->q_id);
 ^
spqi/pqilib/src/pqi_response.c:434:4: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
   DBG_WARN("cmd that was aborted came back. tag=%d\n", rcb->tag);
   ^
spqi/pqilib/src/pqi_response.c:438:4: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
   DBG_WARN("abort cmd came back. tag=%d\n", rcb->tag);
   ^
spqi/pqilib/src/pqi_sis.c:256:4: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
   DBG_WARN("Controller-supported max outstanding "
   ^
spqi/pqilib/src/pqi_sis.c:469:11: style: The scope of the variable 'db_reg' can be reduced. [variableScope]
 uint32_t db_reg;
          ^
spqi/pqilib/src/pqi_tag.c:188:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
  DBG_INFO("push tag :%d\n",index);
  ^
spqi/pqilib/src/pqi_tag.c:236:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_INFO("pop tag: %d\n",cur_head.top.index);
 ^
spqi/src/FreeBSD_cam.c:455:6: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
     DBG_WARN_BTL(rcb->dvp, "IO aborted\n");
     ^
spqi/src/FreeBSD_cam.c:455:6: warning: %u in format string (no. 5) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
     DBG_WARN_BTL(rcb->dvp, "IO aborted\n");
     ^
spqi/src/FreeBSD_cam.c:455:6: warning: %u in format string (no. 6) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
     DBG_WARN_BTL(rcb->dvp, "IO aborted\n");
     ^
spqi/src/FreeBSD_cam.c:466:6: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
     DBG_WARN_BTL(rcb->dvp,"AIO Path Disabled\n");
     ^
spqi/src/FreeBSD_cam.c:466:6: warning: %u in format string (no. 5) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
     DBG_WARN_BTL(rcb->dvp,"AIO Path Disabled\n");
     ^
spqi/src/FreeBSD_cam.c:466:6: warning: %u in format string (no. 6) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
     DBG_WARN_BTL(rcb->dvp,"AIO Path Disabled\n");
     ^
spqi/src/FreeBSD_cam.c:482:6: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
     DBG_WARN_BTL(rcb->dvp,"IO Error/Invalid/No device\n");
     ^
spqi/src/FreeBSD_cam.c:482:6: warning: %u in format string (no. 5) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
     DBG_WARN_BTL(rcb->dvp,"IO Error/Invalid/No device\n");
     ^
spqi/src/FreeBSD_cam.c:482:6: warning: %u in format string (no. 6) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
     DBG_WARN_BTL(rcb->dvp,"IO Error/Invalid/No device\n");
     ^
spqi/src/FreeBSD_cam.c:503:4: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
   DBG_WARN_BTL(rcb->dvp,"Scsi Status Error\n");
   ^
spqi/src/FreeBSD_cam.c:503:4: warning: %u in format string (no. 5) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
   DBG_WARN_BTL(rcb->dvp,"Scsi Status Error\n");
   ^
spqi/src/FreeBSD_cam.c:503:4: warning: %u in format string (no. 6) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
   DBG_WARN_BTL(rcb->dvp,"Scsi Status Error\n");
   ^
spqi/src/FreeBSD_cam.c:514:3: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
  DBG_ERR_BTL(rcb->dvp, "SCSI_STATUS_CHECK_COND  sense size %u\n",
  ^
spqi/src/FreeBSD_cam.c:514:3: warning: %u in format string (no. 5) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
  DBG_ERR_BTL(rcb->dvp, "SCSI_STATUS_CHECK_COND  sense size %u\n",
  ^
spqi/src/FreeBSD_cam.c:514:3: warning: %u in format string (no. 6) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
  DBG_ERR_BTL(rcb->dvp, "SCSI_STATUS_CHECK_COND  sense size %u\n",
  ^
spqi/src/FreeBSD_cam.c:545:3: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
  DBG_ERR_BTL(rcb->dvp, "map failed err = %d or nseg(%d) > sgelem(%d)\n",
  ^
spqi/src/FreeBSD_cam.c:545:3: warning: %u in format string (no. 5) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
  DBG_ERR_BTL(rcb->dvp, "map failed err = %d or nseg(%d) > sgelem(%d)\n",
  ^
spqi/src/FreeBSD_cam.c:545:3: warning: %u in format string (no. 6) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
  DBG_ERR_BTL(rcb->dvp, "map failed err = %d or nseg(%d) > sgelem(%d)\n",
  ^
spqi/src/FreeBSD_cam.c:545:3: warning: %d in format string (no. 12) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
  DBG_ERR_BTL(rcb->dvp, "map failed err = %d or nseg(%d) > sgelem(%d)\n",
  ^
spqi/src/FreeBSD_cam.c:553:3: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
  DBG_ERR_BTL(rcb->dvp, "os_mem_alloc() failed; nseg = %d\n", nseg);
  ^
spqi/src/FreeBSD_cam.c:553:3: warning: %u in format string (no. 5) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
  DBG_ERR_BTL(rcb->dvp, "os_mem_alloc() failed; nseg = %d\n", nseg);
  ^
spqi/src/FreeBSD_cam.c:553:3: warning: %u in format string (no. 6) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
  DBG_ERR_BTL(rcb->dvp, "os_mem_alloc() failed; nseg = %d\n", nseg);
  ^
spqi/src/FreeBSD_cam.c:578:3: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
  DBG_ERR_BTL(rcb->dvp, "Build IO failed, error = %d\n", error);
  ^
spqi/src/FreeBSD_cam.c:578:3: warning: %u in format string (no. 5) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
  DBG_ERR_BTL(rcb->dvp, "Build IO failed, error = %d\n", error);
  ^
spqi/src/FreeBSD_cam.c:578:3: warning: %u in format string (no. 6) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
  DBG_ERR_BTL(rcb->dvp, "Build IO failed, error = %d\n", error);
  ^
spqi/src/FreeBSD_cam.c:614:4: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
   DBG_ERR_BTL(rcb->dvp, "bus_dmamap_load_ccb failed, return status = %d transfer length = %d\n",
   ^
spqi/src/FreeBSD_cam.c:614:4: warning: %u in format string (no. 5) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
   DBG_ERR_BTL(rcb->dvp, "bus_dmamap_load_ccb failed, return status = %d transfer length = %d\n",
   ^
spqi/src/FreeBSD_cam.c:614:4: warning: %u in format string (no. 6) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint]
   DBG_ERR_BTL(rcb->dvp, "bus_dmamap_load_ccb failed, return status = %d transfer length = %d\n",
   ^
spqi/src/FreeBSD_cam.c:614:4: warning: %d in format string (no. 11) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
   DBG_ERR_BTL(rcb->dvp, "bus_dmamap_load_ccb failed, return status = %d transfer length = %d\n",
   ^
spqi/src/FreeBSD_cam.c:803:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
  DBG_INFO("Invalid index/device!!!, Device BTL %d:%d:%d\n", softs->bus_id, target, lun);
  ^
spqi/src/FreeBSD_cam.c:852:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_IO("tag = %d &softs->taglist : %p\n", tag, &softs->taglist);
 ^
spqi/src/FreeBSD_cam.c:1211:8: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
       DBG_ERR("Target is null, target id=%d\n", t_id);
       ^
spqi/src/FreeBSD_cam.c:1203:13: style: Unsigned expression 't_id' can't be negative so it is unnecessary to test it. [unsignedPositive]
   if (t_id >= PQI_CTLR_INDEX) {
            ^
spqi/src/FreeBSD_cam.c:715:6: style: Unused variable: bus [unusedVariable]
 int bus, target, lun ;
     ^
spqi/src/FreeBSD_cam.c:715:11: style: Unused variable: target [unusedVariable]
 int bus, target, lun ;
          ^
spqi/src/FreeBSD_cam.c:715:19: style: Unused variable: lun [unusedVariable]
 int bus, target, lun ;
                  ^
spqi/src/FreeBSD_intr.c:222:3: portability: %ld in format string (no. 7) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint]
  DBG_ERR("Memory allocation failed, Requested memory:%ld bytes\n", msix_size);
  ^
spqi/src/FreeBSD_main.c:361:2: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_NOTE("SmartPQI Device Hint: %s, Is it enabled = %d\n", keyword, *value);
 ^
spqi/src/FreeBSD_main.c:584:4: warning: %d in format string (no. 8) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
   DBG_ERR("Cant create datamap for buf @"
   ^
spqi/src/FreeBSD_main.c:261:6: style: The scope of the variable 'result' can be reduced. [variableScope]
 int result;
     ^
spqi/src/FreeBSD_misc.c:233:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_NOTE("Adapter queue depth before hint set = %d, Queue depth after hint set = %d\n",
 ^
spqi/src/FreeBSD_misc.c:233:2: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_NOTE("Adapter queue depth before hint set = %d, Queue depth after hint set = %d\n",
 ^
spqi/src/FreeBSD_misc.c:264:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_NOTE("SG segments before hint set = %d, SG segments after hint set = %d\n",
 ^
spqi/src/FreeBSD_misc.c:264:2: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 DBG_NOTE("SG segments before hint set = %d, SG segments after hint set = %d\n",
 ^
spqi/src/FreeBSD_misc.c:61:6: style: The scope of the variable 'ret' can be reduced. [variableScope]
 int ret = 0;
     ^
spqi/src/FreeBSD_misc.c:61:10: style: Variable 'ret' is assigned a value that is never used. [unreadVariable]
 int ret = 0;
         ^
spqi/pqilib/src/pqi_helper.c:373:0: style: The function 'check_device_pending_commands_to_complete' is never used. [unusedFunction]

^
spqi/pqilib/src/pqi_helper.c:7:0: style: The function 'pqisrc_ctrl_diagnostic_options' is never used. [unusedFunction]

^
spqi/pqilib/src/pqi_request.c:260:0: style: The function 'pqisrc_show_aio_req' is never used. [unusedFunction]

^
spqi/pqilib/src/pqi_request.c:151:0: style: The function 'pqisrc_show_raid_req' is never used. [unusedFunction]

^
spqi/pqilib/src/pqi_discovery.c:323:0: style: The function 'pqisrc_update_scsi_sense' is never used. [unusedFunction]

^
nofile:0:0: information: Cppcheck cannot find all the include files (use --check-config for details) [missingIncludeSystem]

